package com.huawei.mall.modules.role.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户权限表
 * </p>
 *
 * @author 元气小喵仙~
 * @since 2025-06-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("roles")
@ApiModel(value="Roles对象", description="用户权限表")
public class Roles implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "权限名")
    private String name;

    @ApiModelProperty(value = "权限描述")
    private String description;

    @ApiModelProperty(value = "后台用户数量")
    private Integer adminCount;

    @ApiModelProperty(value = "权限创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "权限更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "启用状态： 0表示禁用 1表示启用")
    private Integer status;


}
